package com.unicom.scg.scancodego.service.impl;

import com.unicom.scg.scancodego.entity.TOrder;
import com.unicom.scg.scancodego.entity.TOrderExample;
import com.unicom.scg.scancodego.entity.VOrders;
import com.unicom.scg.scancodego.entity.VOrdersExample;
import com.unicom.scg.scancodego.mapper.TOrderMapper;
import com.unicom.scg.scancodego.mapper.TProductMapper;
import com.unicom.scg.scancodego.mapper.VOrdersMapper;
import com.unicom.scg.scancodego.service.VordersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liyy22
 * @version 1.0
 * @date 2019/11/4 18:50
 */
@Service
public class VordersServiceimpl implements VordersService {
    @Autowired
    VOrdersMapper vOrdersMapper;
    @Override
    public List<VOrders> getOrdersBytResident_id(String resident_id) {


        VOrdersExample vOrdersExample = new VOrdersExample();
        vOrdersExample.createCriteria().andResidentIdEqualTo(resident_id);
        List<VOrders> vOrders = vOrdersMapper.selectByExample(vOrdersExample);
        return vOrders;
    }
}
